package com.itheima.task1;

public class Round extends Shape{
    private double radius;
    private final double PI=3.14;

    public Round() {
    }

    public Round(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double getPI() {
        return PI;
    }

    @Override
    public void getArea() {
        System.out.println("圆的面积为"+PI*radius*radius);
    }

    @Override
    public void getCircumference() {
        System.out.println("圆的周长为"+PI*radius*2);

    }
}
